﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace TestMySql
{
    public class EfDbContext : DbContext
    {
        static EfDbContext()
        {
            Database.SetInitializer<EfDbContext>(null);


        }

        public EfDbContext()
            : base("name=ChinookContext")
        {
            // this.Configuration.ProxyCreationEnabled = false;
        }

        public EfDbContext(string connStr)
            : base(connStr)
        {
        }


        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new DmsUserMapping());
        }
    }
}